package com.simpletour.qa.user.repository;

import com.simpletour.qa.common.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author zhaohw
 * @date 2018-06-20 14:12
 */
public interface UserJpaRepository extends JpaRepository<User,Integer> {

    /**
     * 通过用户名查找用户
     * @param username 用户登录名
     * @return
     */
    User findUserByUsername(String username);

}
